﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FD.RemoteAssistant.Entities
{
    /*
     * CreatedOn: 2018-05-16
     * CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 数据项
    /// </summary>
    public class DataColumnAttribute : Attribute
    {
        /// <summary>
        /// 显示标题
        /// </summary>
        public string Text { get; set; }

        public string DataName { get; set; }

        /// <summary>
        /// 显示宽度
        /// </summary>
        public int Width { get; set; }

        public DataColumnType DataColumnType { get; set; }

        /// <summary>
        /// 是否必填
        /// </summary>
        public bool IsRequired { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrMessage { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int SortIndex { get; set; }
    }
}
